package com.wing.productionPlan.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.productionPlan.model.entity.ProductionPlan;
import com.wing.productionPlan.model.entity.ProductionWorkOrder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 生产开工单VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class WorkOrderInfoVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 工单编码
     */
    private String code;
    /**
     * 所属计划
     */
    private String planCode;
    /**
     * 交货时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime deliveryTime;
    /**
     * 订单录入人
     */
    private String keyboarder;
    /**
     * 询价审核人
     */
    private String enquiryAuditPerson;
    /**
     * 报价截止日期
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime expirationDate;

    /**
     * 需求数量
     */
    private Integer demandQuantity;

    /**
     * 询价说明
     */
    private String enquiryRemark;
    /**
     * 计划明细
     */
    private List<ProductionPlanVO> planDetail;

    /**
     * 工单明细
     */
    private List<ProductionWorkOrderVO> workOrderDetail;

    /**
     * 工序关联物料明细
     */
    private List<ProductionProcessMaterialVO> materialDetail;


}
